package com.itheima.d3_transform_stream;

import java.io.*;

public class InputStreamReaderTest1 {
    public static void main(String[] args) {

        try (
                FileInputStream is = new FileInputStream("Day18-io-app\\src\\itheimaOut03.txt");
                InputStreamReader isr = new InputStreamReader(is, "utf-8");
                BufferedReader br = new BufferedReader(isr);
        ) {
            String line;
            while ((line = br.readLine()) != null) {
                System.out.println(line);
            }

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
